package com.ruoyi.storeAdd.mapper;

import java.util.Date;
import java.util.List;

import com.ruoyi.storeAdd.domain.StoreChargeOrder;
import com.ruoyi.storeAdd.domain.SysExpendDetails;
import org.apache.ibatis.annotations.Param;

/**
 * 商户充值订单Mapper接口
 * 
 * @author ruoyi
 * @date 2024-06-21
 */
public interface SysExpendDetailsMapper 
{
    /**
     * 查询商户充值订单
     * 
     * @param id 商户充值订单主键
     * @return 商户充值订单
     */
    public SysExpendDetails selectSysExpendDetailsById(Long id);

    /**
     * 查询商户充值订单列表
     * 
     * @param sysExpendDetails 商户充值订单
     * @return 商户充值订单集合
     */
    public List<SysExpendDetails> selectSysExpendDetailsList(SysExpendDetails sysExpendDetails);

    /**
     * 新增商户充值订单
     * 
     * @param sysExpendDetails 商户充值订单
     * @return 结果
     */
    public int insertSysExpendDetails(SysExpendDetails sysExpendDetails);

    /**
     * 修改商户充值订单
     * 
     * @param sysExpendDetails 商户充值订单
     * @return 结果
     */
    public int updateSysExpendDetails(SysExpendDetails sysExpendDetails);

    /**
     * 删除商户充值订单
     * 
     * @param id 商户充值订单主键
     * @return 结果
     */
    public int deleteSysExpendDetailsById(Long id);

    /**
     * 批量删除商户充值订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysExpendDetailsByIds(Long[] ids);

    List<StoreChargeOrder> getStoreChargeOrder();

    List<StoreChargeOrder> getAgentStoreChargeOrder(@Param("startTime") Date startTime,@Param("endTime") Date endTime,@Param("deptId") Long deptId);

    List<SysExpendDetails> getSysExpendDetailsList(@Param("sysExpendDetails")SysExpendDetails sysExpendDetails,@Param("beginCreateTime") Date beginCreateTime,@Param("endCreateTime") Date endCreateTime);

    List<StoreChargeOrder> getStoreChargeOrderOther(Long deptId);
}
